<?php if ( ! defined('WDK_PATH')) exit('No direct script access allowed');?>
<!--{**************************************************************************}-->
<style>
textarea	{width:100%;height:200px;border:1px solid #EEE;line-height: 130%;}
.radiobtn	{margin:10px 0px;}
</style>
<!--{**************************************************************************}-->
<h1 class="title">회원가입약관</h1>
<form name="agreement_form" action="" method="POST">
	<textarea readonly="readonly">{# include app/page/agreement.txt #}</textarea>
	<div class="radiobtn">
		<input type="radio" name="user_agreement[0]" value="T" id="r1t" checked="checked"/> <label for="r1t"/>동의합니다.</label>
		<input type="radio" name="user_agreement[0]" value="F" id="r1f"/> <label for="r1f"/>동의하지 않습니다.</label>
	</div>
	<h1>개인정보취급방침</h1>
	<textarea readonly="readonly">{# include app/page/privacy.txt #}</textarea>
	<div class="radiobtn">
		<input type="radio" name="user_agreement[1]" value="T" id="r2t" checked="checked"/> <label for="r2t"/>동의합니다.</label>
		<input type="radio" name="user_agreement[1]" value="F" id="r2f"/> <label for="r2f"/>동의하지 않습니다.</label>
	</div>
</form>
<div class="tc">
<a class="btn" id="btn_confirm">확인</a>
</div>
<!--{**************************************************************************}-->
<script>
(function($){
	$('#btn_confirm').click(function(){
		var agree = true;
		$(':radio:checked').map(function(){
			if($(this).val() == 'F') agree = false;
		});
		if(agree == false)
		{
			return alert('회원가입약관의 내용에 동의하셔야 회원가입 하실 수 있습니다.');
		}
		$('form[name=agreement_form]').submit();
	});
})(jQuery);
</script>
<!--{**************************************************************************}-->